'use strict';

const { Service } = require('egg');
class UserService extends Service {
  async createUser (info) {
    const { ctx, app } = this;
    try {
      const result = await app.mysql.insert('user', info); // 给list表新增一条数据
      return result;
    } catch (error) {
      console.log(error);
      return null;
    }
  }
}
module.exports = UserService;
